/* ==平行事件应用样式== */
/* @name         Parallel Events App Styles */
/* @version      1.0.0 */
/* @description  平行事件应用的样式文件 */
/* @author       Assistant */

.parallel-events-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.parallel-events-header {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.parallel-events-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.parallel-events-header p {
    margin: 8px 0 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.parallel-events-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.status-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-size: 14px;
    opacity: 0.9;
}

.status-value {
    font-weight: 600;
    font-size: 14px;
}

.status-value.active {
    color: #4ade80;
}

.status-value.inactive {
    color: #f87171;
}

.controls-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.controls-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group {
    margin-bottom: 16px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.control-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.control-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.control-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.control-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.control-select option {
    background: #4c1d95;
    color: white;
}

.control-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    resize: vertical;
    backdrop-filter: blur(5px);
    font-family: inherit;
}

.control-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.control-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-input {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-input.active {
    background: #4ade80;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input.active .toggle-slider {
    transform: translateX(24px);
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.btn-primary:hover {
    background: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.btn-secondary:hover {
    background: rgba(156, 163, 175, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.3);
    transform: translateY(-2px);
}

.queue-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.queue-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.queue-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-item:last-child {
    margin-bottom: 0;
}

.queue-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.queue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.queue-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-item-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.queue-item-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.queue-item-status.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.queue-item-status.completed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.queue-item-status.failed {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.retry-btn, .remove-btn {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background: rgba(52, 152, 219, 0.3);
}

.remove-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

.queue-item-content {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

.queue-item-content > div {
    margin-bottom: 2px;
}

.error-text {
    color: #f87171 !important;
    font-weight: bold;
    opacity: 1 !important;
}

.empty-queue {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
}

.empty-queue-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-queue-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-queue-hint {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .parallel-events-content {
        padding: 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
